package ipdesk.model.analysis.dao;

import ipdesk.model.analysis.bean.AnalysisSeminarBean;

import java.util.List;
import java.util.Map;

import com.ibatis.dao.client.DaoManager;
import com.ibatis.dao.client.template.SqlMapDaoTemplate;
import com.opensymphony.xwork2.ActionContext;

public class AnalysisSeminarImpl extends SqlMapDaoTemplate implements IAnalysisSeminar {

	ActionContext context = ActionContext.getContext();
	Map<String, String> session = (Map<String, String>)context.getSession();
	
	public AnalysisSeminarImpl(DaoManager daoManager) {
		super(daoManager);
	}

	public List<AnalysisSeminarBean> getYears(){
		
		List<AnalysisSeminarBean> getYears = this.queryForList("seminar.getYears");
		
		return getYears;
	}

	public List<AnalysisSeminarBean> getAnalysisSeminarList(String selectedYear) {
		List<AnalysisSeminarBean> analysisSeminarList = this.queryForList("seminar.getAnalysisSeminarList", selectedYear);
		return analysisSeminarList;
	}

	public List<AnalysisSeminarBean> getAnalysisSeminarListByMonth(AnalysisSeminarBean analysisSeminarBean) {
		List<AnalysisSeminarBean> analysisSeminarListByMonth = this.queryForList("seminar.getAnalysisSeminarListByMonth", analysisSeminarBean);
		return analysisSeminarListByMonth;
	}
}
